package tk.zater.CS;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;

import tk.zater.controlThread;
import tk.zater.Util.fileinfoutil;

public class EsetUpdateThreadPool {
	public static  ArrayList<Thread> thread=doinit();
	
	public static final ArrayList<Thread> doinit(){
		 ArrayList<Thread>thread=new 	 ArrayList<Thread>();
		for(int i=0;i<ESETVersionList.getMonitorList().size();i++)
		{
			EsetVersionConfigeration conf= ESETVersionList.getMonitorList().get(i);
			
			new fileinfoutil(conf).readfile();
			thread.add(new Thread(new controlThread(conf), conf.getVersionName()));
		}
		return thread;
		
		
	}

	public ArrayList<Thread> getThread() {
		return thread;
	}

	public void setThread(ArrayList<Thread> thread) {
		this.thread = thread;
	};
}
